import request from '@/utils/request'

// 查询诊断列表
export function listDiagnosis(query) {
  return request({
    url: '/diagnosis/diagnosis/list',
    method: 'get',
    params: query
  })
}

// 查询诊断详细
export function getDiagnosis(deptId) {
  return request({
    url: '/diagnosis/diagnosis/' + deptId,
    method: 'get'
  })
}

// 新增诊断
export function addDiagnosis(data) {
  return request({
    url: '/diagnosis/diagnosis',
    method: 'post',
    data: data
  })
}

// 修改诊断
export function updateDiagnosis(data) {
  return request({
    url: '/diagnosis/diagnosis',
    method: 'put',
    data: data
  })
}

// 删除诊断
export function delDiagnosis(deptId) {
  return request({
    url: '/diagnosis/diagnosis/' + deptId,
    method: 'delete'
  })
}

//保存
export function addMyData(data) {
  return request({
    url: '/work/work/savePrescription',
    method: 'post',
    data: data
  })
}


